namespace SubSonic
{
    using System;
    using System.Data;

    public class QueryParameter
    {
        private ParameterDirection _mode = ParameterDirection.Input;
        private int _size = 50;
        private DbType dataType;
        internal const ParameterDirection DefaultParameterDirection = ParameterDirection.Input;
        internal const int DefaultSize = 50;
        private string parameterName;
        private object parameterValue;

        public DbType DataType
        {
            get
            {
                return this.dataType;
            }
            set
            {
                this.dataType = value;
            }
        }

        public ParameterDirection Mode
        {
            get
            {
                return this._mode;
            }
            set
            {
                this._mode = value;
            }
        }

        public string ParameterName
        {
            get
            {
                return this.parameterName;
            }
            set
            {
                this.parameterName = value;
            }
        }

        public object ParameterValue
        {
            get
            {
                return this.parameterValue;
            }
            set
            {
                this.parameterValue = value;
            }
        }

        public int Size
        {
            get
            {
                return this._size;
            }
            set
            {
                this._size = value;
            }
        }
    }
}

